package com.baiqian.doupo.tileentity;

import com.baiqian.doupo.Utils;
import com.baiqian.doupo.block.BlockRegistry;
import net.minecraft.tileentity.TileEntityType;
import net.minecraftforge.fml.RegistryObject;
import net.minecraftforge.registries.DeferredRegister;
import net.minecraftforge.registries.ForgeRegistries;

//事件集中注册
public class TileEntityTypeRegistry {
    public static final DeferredRegister<TileEntityType<?>> TILE_ENTITIES = DeferredRegister.create(ForgeRegistries.TILE_ENTITIES, Utils.MOD_ID);
    public static final RegistryObject<TileEntityType<HuoDingTileEntity>> huo_ding_tileentity = TILE_ENTITIES.register("huo_ding_tileentity", () -> TileEntityType.Builder.create(HuoDingTileEntity::new, BlockRegistry.huo_ding.get()).build(null));
    public static final RegistryObject<TileEntityType<ZhuJiLingYeTileEntity>> zhu_ji_ling_ye_tileentity = TILE_ENTITIES.register("zhu_ji_ling_ye_tileentity", () -> TileEntityType.Builder.create(ZhuJiLingYeTileEntity::new, BlockRegistry.zhu_ji_ling_ye.get()).build(null));

}
